import axios from '@/libs/api.request'

export const getmultipleChoicesList = (seachParams) => {
  return axios.request({
    url: 'multipleChoices',
    method: 'get',
    params: seachParams
  })
}

export const getmultipleChoices = (id) => {
  return axios.request({
    url: 'multipleChoices/' + id,
    method: 'get'
  })
}

export const addmultipleChoices = (data) => {
  return axios.request({
    url: 'multipleChoices',
    method: 'post',
    data: data
  })
}

export const updatemultipleChoices = (id, data) => {
  return axios.request({
    url: 'multipleChoices/'+id,
    method: 'put',
    data: data
  })
}

export const deletemultipleChoices = (id) => {
  return axios.request({
    url: 'multipleChoices/'+id,
    method: 'delete'
  })
}
